
package org.apache.solr.highlight;

import org.apache.lucene.search.vectorhighlight.FragListBuilder;
import org.apache.solr.common.params.SolrParams;

public class SimpleFragListBuilder extends HighlightingPluginBase implements SolrFragListBuilder {

    @Override
    public FragListBuilder getFragListBuilder(SolrParams params) {
        // NOTE: This class (currently) makes no use of params
        // If that ever changes, it should wrap them with defaults...
        // params = SolrParams.wrapDefaults(params, defaults)

        numRequests++;

        return new org.apache.lucene.search.vectorhighlight.SimpleFragListBuilder();
    }

    // SolrInfoMBeans methods
    @Override
    public String getDescription() {
        return "SimpleFragListBuilder";
    }

    @Override
    public String getSource() {
        return "$URL: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_0/solr/core/src/java/org/apache/solr/highlight/SimpleFragListBuilder.java $";
    }
}
